﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="HizliPromosyon.aspx.cs" Inherits="HizliPromosyon" %>

<%@ Register Assembly="CrmControls" Namespace="CrmControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Veyron Crm</title>

    <script type="text/javascript" src="MasterMainSettings.js"></script>

    <script type="text/javascript">
    function PageClose()
    {
    window.close();
    window.opener.location="DataList.aspx?type=HizliPromosyon";
    }
    function Refresh()
    {
    window.opener.location="DataList.aspx?type=HizliPromosyon";
    }
    function BslSaat()
    {
    var bslSaat=document.getElementById("txtBaslangicSaat").value;
    bslSaat+='';
    x=bslSaat.split(';');
    x1=x[0];
    var rgx=/(\d{2})(\d{2})/;
    while (rgx.test(x1))
    {
    x1 = x1.replace(rgx, '$1' + ':' + '$2');
    }
    return document.getElementById("txtBaslangicSaat").value=x1 ;
    }
    function BtsSaat()
    {
    var btsSaat=document.getElementById("txtBitisSaat").value;
    btsSaat+='';
    b=btsSaat.split(';');
    b1=b[0];
    var rgx2=/(\d{2})(\d{2})/;
    while(rgx2.test(b1))
    {
    b1=b1.replace(rgx2,'$1'+':'+'$2');
    }
    return document.getElementById("txtBitisSaat").value=b1;
    }
 
    
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="ToolBar">
        <table>
            <tr>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnKaydet" AlternateText="Kaydet" ImageUrl="~/images/page/save.gif"
                        OnClick="imgbtnKaydet_Click" />
                </td>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnKaydetKapat" AlternateText="Kaydet ve Kapat"
                        ImageUrl="~/images/page/saveClose.gif" Width="16px" OnClick="imgbtnKaydetKapat_Click" />
                </td>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnSil" AlternateText="Sil" ImageUrl="~/images/page/remove.gif"
                        OnClick="imgbtnSil_Click" />
                    <input type="hidden" id="hdnStokid" visible="false" runat="server" />
                </td>
                <td>
                    <asp:ImageButton ID="imgNewREcord" AlternateText="Yeni Kayıt" runat="server" ImageUrl="~/images/page/newrecord.gif"
                        OnClick="imgNewREcord_Click" Style="width: 16px" />
                </td>
            </tr>
        </table>
    </div>
    <div>
        <div>
            <table style="width: 650px;">
                <tr>
                    <td style="width: 96px;">
                        <cc1:CrmLabel runat="server" ID="lblPromosyonTip" Text="Promosyon Tipi"></cc1:CrmLabel>
                    </td>
                    <td colspan="7">
                        <cc1:CrmDropDown runat="server" ID="drpPromosyonTip" AutoPostBack="true">
                            <asp:ListItem Text="Seçiniz.." Value="0"></asp:ListItem>
                            <asp:ListItem Text="Doğum Tarihine Göre" Value="1"></asp:ListItem>
                            <asp:ListItem Text="Kdv Bizden" Value="2"></asp:ListItem>
                            <asp:ListItem Text="Kdv %50 Bizden" Value="3"></asp:ListItem>
                            <asp:ListItem Text="Anneler Günü" Value="4"></asp:ListItem>
                            <asp:ListItem Text="Babalar Günü" Value="5"></asp:ListItem>
                            <asp:ListItem Text="Öğretmenler Günü" Value="6"></asp:ListItem>
                            <asp:ListItem Text="Sevgililer Günü" Value="7"></asp:ListItem>
                            <asp:ListItem Text="Yılbaşına Özel" Value="8"></asp:ListItem>
                            <asp:ListItem Text="Site veya Mahalleye İndirim" Value="9"></asp:ListItem>
                        </cc1:CrmDropDown>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel runat="server" ID="lblTarih" Text="Tarih"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmDropDown runat="server" ID="drpAylar">
                            <asp:ListItem Text="Ocak" Value="01"></asp:ListItem>
                            <asp:ListItem Text="Şubat" Value="02"></asp:ListItem>
                            <asp:ListItem Text="Mart" Value="03"></asp:ListItem>
                            <asp:ListItem Text="Nisan" Value="04"></asp:ListItem>
                            <asp:ListItem Text="Mayıs" Value="05"></asp:ListItem>
                            <asp:ListItem Text="Haziran" Value="06"></asp:ListItem>
                            <asp:ListItem Text="Temmuz" Value="07"></asp:ListItem>
                            <asp:ListItem Text="Ağustos" Value="08"></asp:ListItem>
                            <asp:ListItem Text="Eylül" Value="09"></asp:ListItem>
                            <asp:ListItem Text="Ekim" Value="10"></asp:ListItem>
                            <asp:ListItem Text="Kasım" Value="11"></asp:ListItem>
                            <asp:ListItem Text="Aralık" Value="12"></asp:ListItem>
                        </cc1:CrmDropDown>
                    </td>
                    <td>
                        <cc1:CrmLabel runat="server" ID="lblGun" Text="Gün"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmDropDown runat="server" ID="drpGun">
                        </cc1:CrmDropDown>
                    </td>
                    <td>
                        <cc1:CrmLabel runat="server" ID="lblBaslangicSaat" Text="Başlangıç Saati"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox runat="server" ID="txtBaslangicSaat" KontrolTipi="Sayi" BuyukHarf="Multi"
                            Maxlength="5" Width="50px"></cc1:CrmTextBox>
                    </td>
                    <td>
                        <cc1:CrmLabel runat="server" ID="lblBitisSaat" Text="Bitiş Saati"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox runat="server" ID="txtBitisSaat" KontrolTipi="Sayi" BuyukHarf="Multi"
                            Maxlength="5" Width="50px"></cc1:CrmTextBox>
                    </td>
                    <td style="width: 77px;">
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <table style="width: 650px;">
                <tr>
                    <td style="width: 15%;">
                        <cc1:CrmLabel runat="server" ID="lblAlisVerisLimit" Text="Alışveriş Limiti"></cc1:CrmLabel>
                    </td>
                    <td colspan="7">
                        <cc1:CrmTextBox runat="server" ID="txtAlisVerisLimit" KontrolTipi="Sayi" Maxlength="12" NoktaKontrol="true" BuyukHarf="Multi"></cc1:CrmTextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        <cc1:CrmLabel runat="server" ID="lblIndirimOrani" Text="İndirim Oranı"></cc1:CrmLabel>
                    </td>
                    <td colspan="7">
                        <cc1:CrmTextBox runat="server" ID="txtIndirimOrani" KontrolTipi="Sayi" Maxlength="2" BuyukHarf="Multi"></cc1:CrmTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel runat="server" ID="lblUrunCariReyon" Text="Ürün\Reyon\Cari"></cc1:CrmLabel>
                    </td>
                    <td colspan="3" rowspan="6">
                        <cc1:CrmTextBox runat="server" ID="txtUrunCariReyon" TextMode="MultiLine" KontrolTipi="Sayi"
                            BuyukHarf="Multi" Height="200px" Width="250px"></cc1:CrmTextBox>
                    </td>
                    <td>
                        <asp:Image ID="imgEkle" Width="20px" Height="20px" runat="server" ImageUrl="~/images/page/ico_Plus.gif" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td style="width: 245px;">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <table style="width: 650px;">
                <tr>
                </tr>
                <tr>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
